import 'package:flutter/material.dart';
import 'package:flutter_app/screen_view/loading_view.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'blocs/network_connectivity_bloc/network_connectivity_bloc.dart';
void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return BlocProvider<NetWorkConnectivityBloc>(
      create: (context)=>NetWorkConnectivityBloc(),
      child: MaterialApp(
        title: '租销管理系统',
        theme: ThemeData(
          primarySwatch: Colors.blue,
          visualDensity: VisualDensity.adaptivePlatformDensity,
        ),
        home: LoadingView(),
      ),
    );
  }
}

